home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global prestoloop, moveloop, toplimit, bottomlimit, leftlimit, rightlimit, rewardlist, gametwolevel, bugstatus, origcoord, boxcenter, boxgrid, numbercast, rednumcast, panelcast, bfcast, bgcast, gocast, stopcast, dupnumbers, bugsounds, reachcur, grabcur
- set bugsounds to []
- set numbercast to []
- set rednumcast to []
- set dupnumbers to []
- set bfcast to []
- set bgcast to []
- set stopcast to []
- set gocast to []
- set panelcast to []
- set gjispeedup to 1
- if gjispeedup then
- set numbercast to [24, 15, 16, 17, 18, 19, 20, 21, 22, 23, 25]
- set rednumcast to [289, 280, 281, 282, 283, 284, 285, 286, 287, 288, 290]
- set bfcast to [231, 242, 233, 239, 241, 240, 238, 237]
- set bgcast to [236, 232, 235, 234, 243]
- set stopcast to [87, 88, 94, 100, 132, 105, 129, 99, 122, 126, 124, 120, 118]
- set gocast to [236, 232, 235, 234, 243, 231, 242, 233, 239, 241, 240, 238, 237]
- if (the freeBytes < 300000) or ((the machineType = 256) and (the freeBytes < 700000)) then
- set bfcast to [105, 129, 99, 122, 126, 124, 120, 118]
- set bgcast to [87, 88, 94, 100, 132]
- set gocast to [87, 88, 94, 100, 132, 105, 129, 99, 122, 126, 124, 120, 118]
- end if
- set panelcast to [27, 28, 29, 30, 31, 32, 33, 34]
- set dupnumbers to [459, 460, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482]
- else
- repeat with xxx = 1 to 10
- add(dupnumbers, the number of cast ("dup" & xxx & ".3"))
- add(dupnumbers, the number of cast ("dup" & xxx & ".2"))
- end repeat
- repeat with xxx = 0 to 10
- add(numbercast, the number of cast ("num" & xxx))
- add(rednumcast, the number of cast ("red" & xxx))
- end repeat
- repeat with xxx = 1 to 5
- add(bgcast, the number of cast ("bg" & xxx))
- add(stopcast, the number of cast ("bg" & xxx & ".stop"))
- add(gocast, getAt(bgcast, xxx))
- end repeat
- repeat with xxx = 1 to 8
- add(bfcast, the number of cast ("bf" & xxx))
- add(stopcast, the number of cast ("bf" & xxx & ".stop"))
- add(gocast, getAt(bfcast, xxx))
- end repeat
- add(panelcast, the number of cast "L1.p")
- add(panelcast, the number of cast "L1.s")
- add(panelcast, the number of cast "L2.1")
- add(panelcast, the number of cast "L2.2")
- add(panelcast, the number of cast "L3.larger")
- add(panelcast, the number of cast "L3.largest")
- add(panelcast, the number of cast "L3.smaller")
- add(panelcast, the number of cast "L3.smallest")
- end if
- set origcoord to []
- repeat with xxx = 1 to 10
- set myh to the locH of sprite (xxx + 10)
- set myv to the locV of sprite (xxx + 10)
- add(origcoord, list(myh, myv))
- end repeat
- set boxgrid to []
- set boxgrid to [[339, 148], [414, 148], [457, 148], [518, 148], [384, 206], [480, 206], [339, 265], [414, 265], [457, 265], [518, 265]]
- set bugstatus to [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
- set blah to (the right of sprite 3 - the left of sprite 3) / 2
- set blav to (the bottom of sprite 3 - the top of sprite 3) / 2
- set boxcenter to list(the left of sprite 3 + blah, the top of sprite 3 + blav)
- set rewardlist to [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
- set templist to [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
- set numberlist to []
- repeat with xxx = 1 to 10
- set holdme to getAt(templist, random(count(templist)))
- add(numberlist, holdme)
- deleteAt(templist, getPos(templist, holdme))
- end repeat
- if gametwolevel = 0 then
- set gametwolevel to 1
- end if
- set toplimit to 10
- set bottomlimit to 349
- set leftlimit to 10
- set rightlimit to the stageRight - the stageLeft - 10
- set prestoloop to marker("presto")
- set moveloop to marker("moveloop")
- repeat with xxx = 44 to 47
- puppetSprite(xxx, 1)
- set the visible of sprite xxx to 0
- end repeat
- set reachcur to the number of cast "cursorpos"
- set grabcur to the number of cast "cursorpos2"
- cursor(4)
- preLoad(marker(1))
- cursor(-1)
- end
-